import mongoose from '../dbHelper';
import { defaultSchemaExtend, defaultSchemaOptions } from "../config/index";

const Schema = mongoose.Schema;

const EditProductLogSchema = new Schema(Object.assign({
    setAddnewLog: Object,
    TaskId: {
        type: Schema.Types.ObjectId,
        ref: 'EditProductTask'
    },
    productId: String,
    statusName: String,
    status: Number,
    code: Number,
    type: String,
    shopId: Number,
    shopName: String,
    msg: String,
}, defaultSchemaExtend), defaultSchemaOptions);

const EditProductLog = mongoose.model('EditProductLog', EditProductLogSchema, 'EditProductLogs');

export default EditProductLog